package xyz.weizhi.tanhua.appserver.Exception;

import lombok.Data;
import xyz.weizhi.tanhua.model.vo.ErrorResult;

/**
 * @Author milian
 * @Date 2021/10/21 0021 19:25
 */
@Data
public class BusinessException extends RuntimeException{
    private ErrorResult errorResult;
    public BusinessException(ErrorResult errorResult){
        super(errorResult.getErrMessage());
        this.errorResult = errorResult;
    }
}
